<?php
$pf = function (int $i = 1): int {
    return $i * $i;
};


echo $pf(3);//9

echo $pf();//1
echo gettype($pf); //object
var_dump($pf(6));//int(36)